from django.shortcuts import render
from .models import FrontUser,UserExtension
from django.http import HttpResponse
# Create your views here.
def one_to_one_view(request):
    user = FrontUser(username="kangbazi")
    user.save()
    extension = UserExtension(school="千锋")
    extension.user = user
    extension.save()

    extension = UserExtension.objects.first()
    print(extension.user)

    users = FrontUser.objects.first()
    print(users.extension)
    return HttpResponse("OK")
